package com.hsh.maoduo.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.hsh.maoduo.common.Result;
import com.hsh.maoduo.pojo.dto.OrderGoodsDTO;
import com.hsh.maoduo.pojo.entity.OrderGoods;
import com.hsh.maoduo.pojo.vo.OrderGoodsVO;
import com.hsh.maoduo.pojo.vo.OutboundVO;

import java.util.List;

/**
 * @author USER
 * @description 针对表【order_goods】的数据库操作Service
 * @createDate 2024-01-04 17:36:13
 */
public interface OrderGoodsService extends IService<OrderGoods> {


    List<OrderGoodsDTO> getList(OrderGoodsVO orderGoodsVO);

    Integer export(OrderGoodsVO orderGoodsVO);

    Result<Integer> addList(List<OrderGoodsVO> orderGoodsVOList);

    Result<Integer> addList(List<OrderGoodsVO> orderGoodsVOList, List<OutboundVO> outboundVOList);

    int addOne(OrderGoodsVO orderGoodsVO, List<OutboundVO> outboundVOList);

    Result update(OrderGoodsVO orderGoodsVO);

    Result delete(int id);

    int insertByExport(List exportList);

}
